package com.cnsugar.ai.face.bean;

import com.seetaface2.model.RecognizeResult;

import java.awt.image.BufferedImage;
import java.io.Serializable;

/**
 * @Author Sugar
 * @Version 2019/4/22 17:50
 */
public class Result implements Serializable {
    private String key;
    private float similar;
    // 存储其ip信息
    private String host;
    // 将原图片一起返回
    private BufferedImage bufferedImage;

    public BufferedImage getBufferedImage() {
        return bufferedImage;
    }

    public void setBufferedImage(BufferedImage bufferedImage) {
        this.bufferedImage = bufferedImage;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Result() {

    }

    public Result(RecognizeResult result) {
        this.similar = result.similar;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public float getSimilar() {
        return similar;
    }

    public void setSimilar(float similar) {
        this.similar = similar;
    }

    @Override
    public String toString() {
        return "Result{" +
                "key='" + key + '\'' +
                ", similar=" + similar +
                ", host='" + host + '\'' +
                ", bufferedImage=" + bufferedImage +
                '}';
    }
}
